package com.spic.business.riskbase.hierarchy.domain;

import java.util.List;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.spic.common.core.annotation.Excel;
import com.spic.common.core.web.domain.BaseEntity;

/**
 * dangerSource对象 risk_danger_source
 * 
 * @author ruoyi
 * @date 2023-04-14
 */
public class RiskDangerSource
{
    private static final long serialVersionUID = 1L;

    /** 危险源id */
    private Long id;

    /** 作业步骤id */
    @Excel(name = "作业步骤id")
    private Long workStepId;

    private Long parentDeptId;
    private Long workTaskId;
    private String workTaskName;
    private String workStepName;

    public Long getParentDeptId() {
        return parentDeptId;
    }

    public void setParentDeptId(Long parentDeptId) {
        this.parentDeptId = parentDeptId;
    }

    public Long getWorkTaskId() {
        return workTaskId;
    }

    public void setWorkTaskId(Long workTaskId) {
        this.workTaskId = workTaskId;
    }

    public String getWorkTaskName() {
        return workTaskName;
    }

    public void setWorkTaskName(String workTaskName) {
        this.workTaskName = workTaskName;
    }

    public String getWorkStepName() {
        return workStepName;
    }

    public void setWorkStepName(String workStepName) {
        this.workStepName = workStepName;
    }

    /** 危险源名称 */
    @Excel(name = "危险源名称")
    private String dangerSourceName;

    /** $table.subTable.functionName信息 */
    private List<RiskDescription> riskDescriptionList;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setWorkStepId(Long workStepId) 
    {
        this.workStepId = workStepId;
    }

    public Long getWorkStepId() 
    {
        return workStepId;
    }
    public void setDangerSourceName(String dangerSourceName) 
    {
        this.dangerSourceName = dangerSourceName;
    }

    public String getDangerSourceName() 
    {
        return dangerSourceName;
    }

    public List<RiskDescription> getRiskDescriptionList()
    {
        return riskDescriptionList;
    }

    public void setRiskDescriptionList(List<RiskDescription> riskDescriptionList)
    {
        this.riskDescriptionList = riskDescriptionList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("workStepId", getWorkStepId())
            .append("dangerSourceName", getDangerSourceName())
            .append("riskDescriptionList", getRiskDescriptionList())
            .toString();
    }
}
